home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / rettig.arc / TRSOURCE.EXE / PASSWORD.C < prev    next >
C/C++ Source or Header  |  1990-10-22  |  647b  |  26 lines

  1. /*********
  2. *  PASSWORD.C
  3. *
  4. *  by Tom Rettig
  5. *
  6. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  7. *
  8. *  Syntax: PASSWORD( <expC> )
  9. *  Return: 8 to 10 digit <expN> value of <expC>
  10. *          Zero if <expC> is less than 3 characters.
  11. *  Note..: Cannot be decoded to determine password from <expN>.
  12. *          Distinguishes between uppercase and lowercase letters.
  13. *          <expC> may contain spaces or any ASCII character.
  14. *********/
  15.  
  16. #include "trlib.h"
  17.  
  18. TRTYPE password()
  19. {
  20.    if ( PCOUNT == 1 && ISCHAR(1) )
  21.       _retnl( _tr_pnum( _parc(1) ) );
  22.    else
  23.       _retnl( ERRORNEGL );    /* -1 if error */
  24. }
  25.  
  26.